<% @competition_items.each do |r| %>
  <% unless r.nil?%>
    <%= render :partial => 'entities/entity', :locals => { :entity => r, :prefix_id=> "competition" } %>
  <% end %>
<% end %>
    